<?php
class view {

    static function showPage($user) {
        echo "<html>\r\n<head>\r\n";
        view::sendHead();
        echo "\r\n</head>\r\n<body bottomargin='0' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>\r\n";
        view::showHeader($user);
        view::showContent($user);
        view::showFooter();
        echo "\r\n</body>\r\n</html>";        
    }
    
    static function sendHead() {
        include_once 'html/head.html';
    }
    
    static function showHeader($user) {
        include_once 'html/header.html';
    }
    
    static function showContent($user) {
        include_once 'html/content.html';
        //echo $user->name."<<";
    }
    
    static function showFooter() {
        include_once 'html/footer.html';
    }

}
?>
